package com.ruoyi.jypc.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用餐订单对象 jypc_canteenorder
 * 
 * @author wwq
 * @date 2022-10-27
 */
public class Canteenorder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    private Long orderid;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userid;

    /** 餐厅ID */
    @Excel(name = "餐厅ID")
    private Long canteenid;

    /** 订餐时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订餐时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ordertime;

    /** 订餐人数 */
    @Excel(name = "订餐人数")
    private Long dinernum;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 备注1 */
    @Excel(name = "备注1")
    private String remark1;

    /** 备注2 */
    @Excel(name = "备注2")
    private String remark2;
    
    @Excels({
    	@Excel(name = "餐厅名称",targetAttr = "canteenname"),
    })
    private Canteen canteen;
    
    public Canteen getCanteen() {
		return canteen;
	}

	public void setCanteen(Canteen canteen) {
		this.canteen = canteen;
	}

	   @Excels({
	    	@Excel(name = "用户名称",targetAttr = "username"),
	    })
	private User user;

    public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public void setOrderid(Long orderid) 
    {
        this.orderid = orderid;
    }

    public Long getOrderid() 
    {
        return orderid;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setCanteenid(Long canteenid) 
    {
        this.canteenid = canteenid;
    }

    public Long getCanteenid() 
    {
        return canteenid;
    }
    public void setOrdertime(Date ordertime) 
    {
        this.ordertime = ordertime;
    }

    public Date getOrdertime() 
    {
        return ordertime;
    }
    public void setDinernum(Long dinernum) 
    {
        this.dinernum = dinernum;
    }

    public Long getDinernum() 
    {
        return dinernum;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRemark1(String remark1) 
    {
        this.remark1 = remark1;
    }

    public String getRemark1() 
    {
        return remark1;
    }
    public void setRemark2(String remark2) 
    {
        this.remark2 = remark2;
    }

    public String getRemark2() 
    {
        return remark2;
    }

	@Override
	public String toString() {
		return "Canteenorder [orderid=" + orderid + ", userid=" + userid + ", canteenid=" + canteenid + ", ordertime="
				+ ordertime + ", dinernum=" + dinernum + ", status=" + status + ", remark1=" + remark1 + ", remark2="
				+ remark2 + ", canteen=" + canteen + ", user=" + user + "]";
	}
 
}
